#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class MyLabel : public QLabel
{
    Q_OBJECT
public:
    explicit MyLabel(QWidget *parent = nullptr);

    void wheelEvent(QWheelEvent *event);

    void setMinNum(int n);
    void setMaxNum(int n);
    void setStepNum(int n);

    int getIndex();


signals:

public slots:

private:
    int index = 0;

    int min = 0;
    int max = 100;
    int step = 1;
};

#endif // MYLABEL_H
